package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 产业链图谱对象 sys_product
 * 
 * @author ruoyi
 * @date 2023-12-29
 */
public class SysProduct extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 节点收缩展开状态属性*/
    private Boolean expanded;

    /** 产品id */
    private Long productId;

    /** 产品名称 */

    private String productName;

    /** 产品详情 */

    private String productDetails;


    public void setExpanded(Boolean expanded) {this.expanded = expanded;}
    public Boolean getExpanded() {return expanded;}

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }
    public Long getProductId()
    {
        return productId;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }
    public String getProductName()
    {
        return productName;
    }

    public void setProductDetails(String productDetails)
    {
        this.productDetails = productDetails;
    }
    public String getProductDetails() 
    {
        return productDetails;
    }

    @Override
    public String toString() {//提供产品对象的字符串表示
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("productId", getProductId())
                .append("parentId", getParentId())
                .append("productName", getProductName())
                .append("productDetails", getProductDetails())
                .append("expanded", getExpanded())
                .toString();
    }
}
